COMPILER=mips-linux-gnu-
#COMPILER=
CC=${COMPILER}gcc
AR=${COMPILER}ar

#driver:driver.o libgpio.a
#	${CC} -o driver driver.o -lgpio
driver:driver.o gpio.o gpiotimer.o
	${CC} -o driver driver.o gpio.o gpiotimer.o
driver.o:driver.c
	${CC} -Wall -c driver.c -o driver.o
libgpio.a:gpio.o
	${AR} rcs libgpio.a gpio.o
gpio.o:gpio.c
	${CC} -Wall -c gpio.c -o gpio.o
gpiotimer.o:gpiotimer.c
	${CC} -Wall -c gpiotimer.c -o gpiotimer.o
clean:
	rm driver *.o *.a
